package com.yue.pattern.builder;

/**
 * Created by qiuyang on 2017/9/6.
 */
public class ConcreteBuilder implements Builder {
    private Product product;

    @Override
    public void buildPartA() {
        System.out.println("create partA");
    }

    @Override
    public void buildPartB() {
        System.out.println("create partB");
    }

    @Override
    public void buildPartC() {
        System.out.println("create partC");
    }

    @Override
    public Product build() {
        buildPartA();
        buildPartB();
        buildPartC();
        return product;
    }
}
